<header id="page-header"> 
    <h1>Aboneler</h1> 
</header>

<nav id="shortcuts">
    <ul>
        <li><a href="<?php echo site_url('backend/subscriber_group/add') ?>" class="add colorbox_tip2">Yeni Ekle</a></li>
    </ul>
    <br class="clear-both" />
</nav>

<div id="content">
	<?php echo $this->session->flashdata('status') ?>
	
	<h3>Abone Gurupları (<?php echo $result['total_rows']; ?>)</h3>

	<table class="list">

		<thead>
			<tr>
				<th>Gurup Adı</th>
				<th>Bu guruptaki abone sayısı</th>
				<th>Eklenme Tarihi</th>
				<th>İşlemler</th>
			</tr>
		</thead>

		<tbody>
			<?php if($result['total_rows']): ?>
				<?php foreach ($result['rows'] as $row): ?>
					<tr >
						<td><?php echo $row->name; ?></td>
						<td><?php echo $row->num_subscriber; ?></td>
						<td><?php echo format_date($row->date_add) ?></td>
                        <td>
                            <a href="<?php echo site_url("backend/subscriber_group/edit/{$row->id}"); ?>" class="colorbox_tip2" itle="Düzenle"><img src="assets/backend/icon/luna/edit.png" alt="" /></a>
                            <a href="<?php echo site_url("backend/subscriber_group/delete/{$row->id}"); ?>" title="Sil" onclick="return confirm('Bu gurubu silerseniz altındaki tüm abonelerde silinecek, Onaylıyormusunuz?')"><img src="assets/backend/icon/luna/trash.png" alt="" /></a>
                        </td>
					</tr>
				<?php endforeach; ?>
			<?php else: ?>

				<tr>
					<td colspan="4">
						<div class="notification info">Bu gurupta herhangi bir abone bulunmamaktadır.</div>
					</td>
				</tr>

			<?php endif; ?>
		</tbody>

	</table>

	<?php echo $pagination; ?>

</div><!-- // #content -->
